package org.jdsm.flow.core.users;

import org.jdsm.flow.core.base.IEntity;

/**
 * User: Mykhaylo Komarichyn
 * Date: 10.06.2010
 * Time: 18:09:08
 */
public interface IRole<T>  extends IEntity<T> {
    /**
     * @return role identifier
     */
    public T getId();

    /**
     * @return role name
     */
    public String getName();

    /**
     * role permission must be 0 for root(super user)
     *
     * @return role permission
     */
    public Long getPermission();

    /**
     * @return role description
     */
    public String getDescription();

}
